package com.daxia.ogmall.web.controller.m;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.daxia.ogmall.dto.DecorateNoteDetailDTO;
import com.daxia.ogmall.dto.api.DecorateNoteDetailAPIDTO;
import com.daxia.ogmall.dto.api.info.DecorateNoteDetailInfoAPIDTO;
import com.daxia.ogmall.support.MPage;

@Controller
@RequestMapping(value = "/m/decorateNoteDetail", produces = "application/json;charset=UTF-8")
public class MDecorateNoteDetailController extends MBaseController {
    
    @ResponseBody
    @RequestMapping("list")
    public String list(DecorateNoteDetailDTO dto, MPage page) throws Exception {
    
        List<DecorateNoteDetailDTO> decorateNoteDetailDTOs = decorateNoteDetailService.find(dto, page);

        return toApiOutput(decorateNoteDetailDTOs, DecorateNoteDetailAPIDTO.class, DecorateNoteDetailInfoAPIDTO.class, page);
    }
    
}
